package 类和对象课堂练习.封装;

public class Zuoye03291 {
    String name;
    int zhongliang;
    int gaodu;

    public Zuoye03291(String name, int zhongliang, int gaodu) {
        this.name = name;
        this.zhongliang = zhongliang;
        this.gaodu = gaodu;
    }
    public void print(){
        System.out.println(name+"机身重"+zhongliang+"吨，飞行高度能达到"+gaodu+"千米");
        System.out.println(name+"开始加速起飞，飞行了一段手机后平稳落地");
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getZhongliang() {
        return zhongliang;
    }

    public void setZhongliang(int zhongliang) {
        this.zhongliang = zhongliang;
    }

    public int getGaodu() {
        return gaodu;
    }

    public void setGaodu(int gaodu) {
        this.gaodu = gaodu;
    }
}
